package com.ct.shops.repository.front;

import com.ct.repository.commons.BaseServiceImpl;
import com.ct.shops.mapper.ShopsMapper;
import com.ct.shops.orm.Shops;
import org.springframework.stereotype.Repository;

@Repository
public class FrontShopsRepository extends BaseServiceImpl<ShopsMapper, Shops> implements IFrontShopsRepository {


    @Override
    public boolean updateOperatingStatus(Long id, Integer operatingStatus) {
        return this.lambdaUpdate()
                .set(Shops::getIsOperating,operatingStatus)
                .eq(Shops::getId,id)
                .update();
    }
}
